import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';

//图片加载状态视图
class ImageLoadingStateView extends StatelessWidget {
  final double width;
  final double height;
  final BorderRadius borderRadius;

  const ImageLoadingStateView(this.width, this.height, this.borderRadius,
      {Key? key})
      : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Container(
      width: width,
      height: height,
      decoration: BoxDecoration(
        borderRadius: borderRadius,
        // color: Colors.red,
      ),
      child: Center(
        child: Image.asset(
          'images/lt_common/temp_load.png',
          height: 35.w,
          fit: BoxFit.fitWidth,
        ),
      ),
    );
  }
}
